<?php
/**
*
* Layout for the shopping cart and the mail
* shows the choosen adresses of the shopper
* taken from the cart in the session
*
* @package	VirtueMart
* @subpackage Cart
* @author Max Milbers
*
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>
<fieldset>
	<legend>
		<?php echo JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); ?>
	</legend>
	<?php
	
	// BT  = bill to
	$BT = $this->cart->BT;
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_TITLE'). " "
		 .JText::_('COM_VIRTUEMART_SHOPPER_FORM_FIRST_NAME') ." "
		 .JText::_('COM_VIRTUEMART_SHOPPER_FORM_LAST_NAME') . " "
		 .JText::_('COM_VIRTUEMART_SHOPPER_FORM_MIDDLE_NAME') . " "
		 .JText::_('COM_VIRTUEMART_SHOPPER_FORM_MIDDLE_NAME') . ": " 
		 .$BT['title'] . " "
		 .$BT['first_name'] . " "
		 .$BT['middle_name'] . " "
		 .$BT['last_name'] . "<br/>";
		 
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_ADDRESS_1') .": ". $BT['address_1'] ."<br/>";
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_ADDRESS_2') .": ". $BT['address_2'] ."<br/>";
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_CITY') .": ". $BT['city'] ."<br/>";
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_STATE') .": ". $BT['state'] ."<br/>";
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_COUNTRY') .": ". $BT['country'] ."<br/>";
	echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_ZIP') .": ". $BT['zip'] ."<br/>";
	
  
		 
		 
	?>
<?php /*	foreach($this->order['details']['BT'] as $item){
			if(!empty($item['value'])){
				echo $item['title'].': '.$item['value'].'<br/>';
			}
		} */?>

</fieldset>

<?php/*
if(!empty($this->STaddress)){ ?>
	<fieldset>
		<legend>
			<?php echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?>
		</legend>
	<?php 	foreach($this->STaddress as $item){
				if(!empty($item['value'])){
					echo $item['title'].': '.$item['value'].'<br/>';
				}
			} ?>
	</fieldset>
<?php }  */?>
